﻿using Microsoft.EntityFrameworkCore.Metadata.Builders;
using X23.Model.Role;

namespace X23.EFCore.Mapping.Role
{
    public class MenuButtonRoleMapping : Mapping<MenuButtonRole>
    {
        public override void OtherConfigure(EntityTypeBuilder<MenuButtonRole> builder)
        {
            builder.Property(x => x.ButtonCode).HasMaxLength(10);
        }
    }
}
